#ifndef APP_WIFI_UPGRADE_H
#define APP_WIFI_UPGRADE_H
#include <iostream>
class WifiUpgrade
{
private:
    WifiUpgrade(/* args */);
    ~WifiUpgrade();
    int app_fd = 0;
    static WifiUpgrade* instance;
public:
    void startUpgrade(); /* 开始升级 */
    uint32_t download(uint8_t* buf, uint32_t len);
    void downloadFinished();
    void stopUpgrade();
    bool check();
    void upgrade();
    static WifiUpgrade* getInstance();

    static void test(void);
};

#endif /* APP_WIFI_UPGRADE_H */
